package com.example.bootasync.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author JiMing Zhou
 * @since 2023-06-02
 */
@Getter
@Setter
@TableName("mq_order")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 商品id
     */
    private Long prodId;

    /**
     * 下单时间
     */
    private LocalDateTime createTime;

    public Order() {
    }

    public Order(Long userId, Long prodId, LocalDateTime createTime) {
        this.userId = userId;
        this.prodId = prodId;
        this.createTime = createTime;
    }
}
